<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditDodavatelLoginTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditDodavatelLoginLabel_id}" for="id" />
                    <h:inputText id="id" value="#{dodavatelLoginController.selected.id}" title="#{bundle.EditDodavatelLoginTitle_id}" required="true" requiredMessage="#{bundle.EditDodavatelLoginRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditDodavatelLoginLabel_login}" for="login" />
                    <h:inputText id="login" value="#{dodavatelLoginController.selected.login}" title="#{bundle.EditDodavatelLoginTitle_login}" required="true" requiredMessage="#{bundle.EditDodavatelLoginRequiredMessage_login}"/>
                    <h:outputLabel value="#{bundle.EditDodavatelLoginLabel_heslo}" for="heslo" />
                    <h:inputText id="heslo" value="#{dodavatelLoginController.selected.heslo}" title="#{bundle.EditDodavatelLoginTitle_heslo}" required="true" requiredMessage="#{bundle.EditDodavatelLoginRequiredMessage_heslo}"/>
                    <h:outputLabel value="#{bundle.EditDodavatelLoginLabel_dodavatel}" for="dodavatel" />
                    <h:selectOneMenu id="dodavatel" value="#{dodavatelLoginController.selected.dodavatel}" title="#{bundle.EditDodavatelLoginTitle_dodavatel}" required="true" requiredMessage="#{bundle.EditDodavatelLoginRequiredMessage_dodavatel}">
                        <f:selectItems value="#{dodavatelController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{dodavatelLoginController.update}" value="#{bundle.EditDodavatelLoginSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditDodavatelLoginViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{dodavatelLoginController.prepareList}" value="#{bundle.EditDodavatelLoginShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditDodavatelLoginIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
